import { defineStore } from 'pinia';
import { WebSocketResult } from '@vueuse/core';
interface NurseState {
    // isWebSocket: Boolean;
    webSocket?: WebSocketResult<any>
}
export const useNurseStore = defineStore({
    id: 'nurse-store',
    state: (): NurseState => ({
        // isWebSocket: false,
        webSocket: undefined
    }),
    getters: {
        getWebSocket(): WebSocketResult<any> {
            return this.webSocket;
        },
    },
    actions: {
        // setIsWebSocket(isWebSocket: boolean) {
        //     this.isWebSocket = isWebSocket
        // },
        setWebSocket(webSocket: WebSocketResult<any>) {
            this.webSocket = webSocket
        },
    },
});
